Pulley = cc.Node.extend({
	ctor:function(p){
		this._super();
		p.addChild(this, 11, TAG_PULLEY);
		this.init();
	},
	init : function(){
		this.setCascadeOpacityEnabled(true);	
		
		var leftpulley= new Button(this, 11, TAG_PULLEY1, "#yiqi/fixedpulley.png",this.callback);//滑轮
	
		leftpulley.setScale(0.7);
		leftpulley.setPosition(400,550);
		
		var rightpulley= new Button(this, 11, TAG_PULLEY2, "#yiqi/fixedpulley.png",this.callback);

		rightpulley.setScale(0.7);
		rightpulley.setPosition(950,550);
		var rotate = cc.rotateTo(0,0,180);
		rightpulley.runAction(rotate);
		
		var leftline= new Button(this, 10, TAG_PULLEY_LINE, "#yiqi/line14.png",this.callback);
		leftline.setVisible(false);	
		leftline.setAnchorPoint(0.5,1);			
		leftline.setPosition(355,550);
		
		var rightline= new Button(this, 10, TAG_PULLEY_LINE1, "#yiqi/line14.png",this.callback);
		rightline.setVisible(false);
		rightline.setAnchorPoint(0.5,1);		
		rightline.setPosition(cc.p(995,550));
	},
	leftlineAction:function(){
		var leftline = this.getChildByTag(TAG_PULLEY_LINE);	
		leftline.setVisible(true);
		leftline.setScale(0.8,0);
		var scale = cc.scaleTo(0.5,0.8,0.65);
		var seq = cc.sequence(cc.delayTime(0.5),scale);
		leftline.runAction(seq);
	},
	rightlineAction:function(){
		var rightline = this.getChildByTag(TAG_PULLEY_LINE1);	//竖线
		rightline.setVisible(true);
		rightline.setScale(0.8,0);
		var scale = cc.scaleTo(0.5,0.8,0.65);
		var seq = cc.sequence(cc.delayTime(0.5),scale);
		rightline.runAction(seq);
	},
	leftlineScaleL:function(){
		var leftline = this.getChildByTag(TAG_PULLEY_LINE);	
		var scale = cc.scaleTo(1,0.8,1.3);
		var seq = cc.sequence(scale);
		leftline.runAction(seq);
	},
	rightlineScaleL:function(){
		var rightline = this.getChildByTag(TAG_PULLEY_LINE1);		
		var scale = cc.scaleTo(1,0.8,1.3);
		var seq = cc.sequence(scale);
		rightline.runAction(seq);
	},
	leftlineScaleS:function(){
		var leftline = this.getChildByTag(TAG_PULLEY_LINE);	
		var scale = cc.scaleTo(1,0.8,0.1);
		var seq = cc.sequence(scale);
		leftline.runAction(seq);
	},
	rightlineScaleS:function(){
		var rightline = this.getChildByTag(TAG_PULLEY_LINE1);		
		var scale = cc.scaleTo(1,0.8,0.1);
		var seq = cc.sequence(scale);
		rightline.runAction(seq);
	},
	callback:function(p){
		
	},
});